//app.js
var utils = require('./utils/util');
App({
    onLaunch: function (options) {
        //扫码进入获取参数
        let q = decodeURIComponent(options.query.q);
        let code = '';
        if (q) {
            code = utils.getQueryString(q, 'code');
            this.globalData.code = code;
            console.log(code, 'code')
        }
    },
    globalData: {
        code: null,
        status: ''
    }
})